package com.woniuxy.java102vuecli.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author author
 * @Create 2023-09-13 15:34
 */

@NoArgsConstructor
@AllArgsConstructor
@Data
//链式编程，属性赋值
//@Accessors(chain = true,fluent=true)
//建造者模式
//@Builder
public class Student {
    private Integer sid;
    private String sname;
    private String date;
    private String address;

    public static void main(String[] args) {
        Student student = new Student();
//       student.sid(1).sname("aaaa");
//        student.setSid(2).setSname("zs").setAddress("cd");
        student.setSid(1);
        student.setSname("zs");
        //建造者模式
//        Student zs = Student.builder().sname("zs").sid(1).build();

    }
}
